package com.ruoyi.part.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.part.domain.DmsPartsPurchaseOrder;
import com.ruoyi.part.domain.DmsPartsPurchaseOrderDetail;

import java.util.List;

/**
 * 零件采购Mapper接口
 * 
 * @author liuchuanfa
 * @date 2024-03-17
 */
public interface DmsPartsPurchaseOrderMapper extends BaseMapper<DmsPartsPurchaseOrder>
{
    /**
     * 查询零件采购
     * 
     * @param id 零件采购主键
     * @return 零件采购
     */
    public DmsPartsPurchaseOrder selectDmsPartsPurchaseOrderById(Long id);

    /**
     * 查询零件采购列表
     * 
     * @param dmsPartsPurchaseOrder 零件采购
     * @return 零件采购集合
     */
    public List<DmsPartsPurchaseOrder> selectDmsPartsPurchaseOrderList(DmsPartsPurchaseOrder dmsPartsPurchaseOrder);

    /**
     * 新增零件采购
     * 
     * @param dmsPartsPurchaseOrder 零件采购
     * @return 结果
     */
    public int insertDmsPartsPurchaseOrder(DmsPartsPurchaseOrder dmsPartsPurchaseOrder);

    /**
     * 修改零件采购
     * 
     * @param dmsPartsPurchaseOrder 零件采购
     * @return 结果
     */
    public int updateDmsPartsPurchaseOrder(DmsPartsPurchaseOrder dmsPartsPurchaseOrder);

    /**
     * 删除零件采购
     * 
     * @param id 零件采购主键
     * @return 结果
     */
    public int deleteDmsPartsPurchaseOrderById(Long id);

    /**
     * 批量删除零件采购
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDmsPartsPurchaseOrderByIds(Long[] ids);

    /**
     * 批量删除零件采购详细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDmsPartsPurchaseOrderDetailByPurchaseIds(Long[] ids);
    
    /**
     * 批量新增零件采购详细
     * 
     * @param dmsPartsPurchaseOrderDetailList 零件采购详细列表
     * @return 结果
     */
    public int batchDmsPartsPurchaseOrderDetail(List<DmsPartsPurchaseOrderDetail> dmsPartsPurchaseOrderDetailList);
    

    /**
     * 通过零件采购主键删除零件采购详细信息
     * 
     * @param id 零件采购ID
     * @return 结果
     */
    public int deleteDmsPartsPurchaseOrderDetailByPurchaseId(Long id);
}
